﻿using System;

namespace Vibstudio.X4NET.Xml.Generation
{
    internal static class MathExtensions
    {
        internal static bool IsNearlyEqual(this float f1, float f2)
        {
            return Math.Abs(f1 - f2) < 0.00001;
        }

        internal static bool IsNearlyEqual(this double f1, double f2)
        {
            return Math.Abs(f1 - f2) < 0.00001;
        }
    }
}
